//
//  RSTextContainerViewController.m
//  iAccountBook
//
//  Created by 侯伟 on 2021/3/1.
//  Copyright © 2021 侯伟. All rights reserved.
//

#import "RSTextContainerViewController.h"

@interface RSTextContainerViewController ()

@property(nonatomic,strong)UITextView* textView;

@end

@implementation RSTextContainerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UITextView* textView = [[UITextView alloc] initWithFrame:self.view.bounds];
    textView.font = FONT_FIT(14);
    textView.textColor = COLOR_BLACK_DARK;
    textView.scrollEnabled = YES;
    textView.showsVerticalScrollIndicator = NO;
    textView.showsHorizontalScrollIndicator = NO;
    textView.editable = NO;
    textView.textContainerInset = UIEdgeInsetsMake(8, 8, 8, 8);
    textView.myMargin = 0;
    textView.text = _text;
    [self.view addSubview:textView];
    _textView = textView;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
